#ifndef OBSERVABLE_H
#define OBSERVABLE_H

#include <set>
#include "Observer.h"

class Observable
{
public:
	Observable ();
	void addObserver (Observer * observer);
	void removeObserver (Observer * observer);

protected:
	void notifyAll (int eventCode);

private:
	std::set<Observer *> observers;
};

#endif
